import Vue from 'vue'
import { $POST, $DELETE, $PUT, $GET, $UploadFile } from '__UTILS__/http_request/request-method.js'
import VueConfig, {preffix} from '__CONFIG__/vue-config.js'
const disposeResFunName = VueConfig[preffix + 'REQUEST_DISPOSE'].name //获取到处理返回结果函数名
const disposeResFun = Vue.prototype[disposeResFunName] // 获取到了处理函数

//获取所有广告
export function getBanners() {
  const API = 'banners'
  return $GET(API, disposeResFun)
}